-
Notifications
You must be signed in to change notification settings - Fork 42
Refactor namespaces #791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor namespaces #791
Conversation
…roup` make it easier to build decision frameworks
…2-we-need-a-policy-object
…2-we-need-a-policy-object
… to adjust default json output key order
Prepares for future ability to convert from OutcomeGroup to DecisionPoint
…need-a-policy-object
…need-a-policy-object
|
Some duplicate keys found: |
|
There are a few strange json files, for example these 5 files for integrity requirements under CVSS. There are only three defined in If you have way you are iterating through all the decision points, can you share it? We can completely remove data/json/decision_points folder and start over. The |
fixing mission prevalence imports.
…/SSVC into refactor_namespaces
|
@sei-vsarvepalli I think I've fixed the problems you found.
|
Still some issues.. The files should be generated under The file
We can probably delete the whole mission_prevalence.py looks like it is not used anymore anywhere. The old Mission Prevalence may be gone now? |
…e only place it was ever used)
|
So the outcome groups are now decision point objects (which lets them be used as inputs to downstream decisions). Their appearance in the decision_point json dirs was intentional. This is how we can deal with "compound decision points" too. flowchart TB
subgraph cdp[Compound Decision Point]
A
B
C
D
end
A --> D
B --> D
C --> D
D --> G
E --> G
F --> G
Mission Prevalence only ever showed up in CISA's model, so I just fixed it and moved it to the CISA namespace. I don't want to start deleting things that were used previously though, so I think it's okay to keep it for now. |
sei-vsarvepalli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now.
dataand python modules by namespace #751This PR refactors the python module layout so that namespaced objects are organized by namespace (pushing
ssvcnamespace objects into their own directory so they are peers to other namespaces likecisaetc.). This results in a lot of files being renamed and a lot of python import statement changes. Some other incidental changes are also included.Sorry the PR is so large, it was not possible to do the refactoring without touching a lot of files.
CoPilot Summary
This pull request includes updates to documentation and JSON files to improve clarity and consistency in terminology. The changes primarily involve replacing "no" with "negligible" in descriptions and updating testing instructions in the
README.mdfile.Documentation Updates:
README.md: Updated testing instructions to clarify that tests run in the host OS, and removed references to Docker.Terminology Consistency in JSON Files:
data/json/decision_points/cvss/modified_availability_impact_to_the_subsequent_system_1_0_0.json: Replaced "no impact" with "negligible impact" in the description of availability impact.data/json/decision_points/cvss/modified_confidentiality_impact_to_the_subsequent_system_1_0_0.json: Replaced "no loss of confidentiality" with "negligible loss of confidentiality" in the description of confidentiality impact.data/json/decision_points/cvss/modified_integrity_impact_to_the_subsequent_system_1_0_0.json: Replaced "no loss of integrity" with "negligible loss of integrity" in the description of integrity impact.